package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

/**
 * 三方支付回调退款状态
 */
enum class PaymentNotifyRefundStatus(private val value: Short, private val desc: String) : IEnum<Short> {
    INIT(0, "初始值"),
    SUCCESS(1, "退款成功"),
    CLOSED(2, "退款关闭"),
    PROCESSING(3, "退款处理中"),
    ABNORMAL(4, "退款异常");

    override fun getValue(): Short {
       return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}